/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


$(document).ready(function(){
    var forgetPasswordDB = new DialogBox($('#forgot_pass'))
    $('#frgt_pss').click(function(){
        forgetPasswordDB.open()
        return false
    })
    $('#requestNewPassword').submit(function(){
        var data=$(this).serialize();
        var url = $(this).attr('action')
        MAX.ajax('POST', url, data, function(res){
            $('#requestPasswordMsg').html(res.msg)
            forgetPasswordDB.close()
        })
        
        return false
    })
})